home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir39
/
envform.zip
/
EX3.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-10-17
|
1KB
|
43 lines
@ECHO OFF
REM * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
REM * *
REM * ENVFORM example three *
REM * *
REM * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
REM - Test if user already performed upgrade
IF EXIST C:\up3done.log GOTO byebye
REM - Set defaults
SET mismsg=MESSAGE FROM MIS:
SET upgnow=
REM - Call ENVFORM.EXE with name of .INI file
:loop
envform ex3.ini
REM - Test for any errors or user abort
SET ENVError=You must select Y or N!
IF ERRORLEVEL 1 GOTO loop
REM - Perform SET statements defined in .INI file
Call ex3b.bat
Erase ex3b.bat
REM - If not Y or N, make user re-enter
IF NOT (%upgnow%)==(Y) IF NOT (%upgnow%)==(N) GOTO loop
REM - IF N, exit out
IF (%upgnow%)==(N) GOTO byebye
REM - IF Y, do whatever here and create a log file saying it
REM - was done so user will not keep getting message.
STAMP "SomeApp Upgrade Completed" > C:\up3done.log
REM - Cleanup is always recommended (but seldom done)
:byebye
SET ENVError=
SET upgnow=
SET MISMSG=